<?php

namespace app\api\controller;

use app\api\model\UserModel;

class UserController
{
    public function getUserInfo()
    {
        $user = new UserModel();
        // 查询单个数据
        $users = $user->find();
        return $users;
    }
}